3.1031 \(\int \frac {1}{x^3 (a+b x^n) (c+d x^n)} \, dx\)

Optimal. Leaf size=95 \[ \frac {d \, _2F_1\left (1,-\frac {2}{n};-\frac {2-n}{n};-\frac {d x^n}{c}\right )}{2 c x^2 (b c-a d)}-\frac {b \, _2F_1\left (1,-\frac {2}{n};-\frac {2-n}{n};-\frac {b x^n}{a}\right )}{2 a x^2 (b c-a d)} \]

[Out]

-1/2*b*hypergeom([1, -2/n],[(-2+n)/n],-b*x^n/a)/a/(-a*d+b*c)/x^2+1/2*d*hypergeom([1, -2/n],[(-2+n)/n],-d*x^n/c
)/c/(-a*d+b*c)/x^2

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {508, 364} \[ \frac {d \, _2F_1\left (1,-\frac {2}{n};-\frac {2-n}{n};-\frac {d x^n}{c}\right )}{2 c x^2 (b c-a d)}-\frac {b \, _2F_1\left (1,-\frac {2}{n};-\frac {2-n}{n};-\frac {b x^n}{a}\right )}{2 a x^2 (b c-a d)} \]

Antiderivative was successfully verified.

[In]

Int[1/(x^3*(a + b*x^n)*(c + d*x^n)),x]

[Out]

-(b*Hypergeometric2F1[1, -2/n, -((2 - n)/n), -((b*x^n)/a)])/(2*a*(b*c - a*d)*x^2) + (d*Hypergeometric2F1[1, -2
/n, -((2 - n)/n), -((d*x^n)/c)])/(2*c*(b*c - a*d)*x^2)

Rule 364

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a^p*(c*x)^(m + 1)*Hypergeometric2F1[-
p, (m + 1)/n, (m + 1)/n + 1, -((b*x^n)/a)])/(c*(m + 1)), x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 508

Int[((e_.)*(x_))^(m_.)/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[b/(b*c - a*d), I
nt[(e*x)^m/(a + b*x^n), x], x] - Dist[d/(b*c - a*d), Int[(e*x)^m/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, e,
n, m}, x] && NeQ[b*c - a*d, 0]

Rubi steps

\begin {align*} \int \frac {1}{x^3 \left (a+b x^n\right ) \left (c+d x^n\right )} \, dx &=\frac {b \int \frac {1}{x^3 \left (a+b x^n\right )} \, dx}{b c-a d}-\frac {d \int \frac {1}{x^3 \left (c+d x^n\right )} \, dx}{b c-a d}\\ &=-\frac {b \, _2F_1\left (1,-\frac {2}{n};-\frac {2-n}{n};-\frac {b x^n}{a}\right )}{2 a (b c-a d) x^2}+\frac {d \, _2F_1\left (1,-\frac {2}{n};-\frac {2-n}{n};-\frac {d x^n}{c}\right )}{2 c (b c-a d) x^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.10, size = 77, normalized size = 0.81 \[ \frac {b c \, _2F_1\left (1,-\frac {2}{n};\frac {n-2}{n};-\frac {b x^n}{a}\right )-a d \, _2F_1\left (1,-\frac {2}{n};\frac {n-2}{n};-\frac {d x^n}{c}\right )}{2 a c x^2 (a d-b c)} \]

Antiderivative was successfully verified.

[In]

Integrate[1/(x^3*(a + b*x^n)*(c + d*x^n)),x]

[Out]

(b*c*Hypergeometric2F1[1, -2/n, (-2 + n)/n, -((b*x^n)/a)] - a*d*Hypergeometric2F1[1, -2/n, (-2 + n)/n, -((d*x^
n)/c)])/(2*a*c*(-(b*c) + a*d)*x^2)

________________________________________________________________________________________

fricas [F]  time = 0.68, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {1}{b d x^{3} x^{2 \, n} + {\left (b c + a d\right )} x^{3} x^{n} + a c x^{3}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(a+b*x^n)/(c+d*x^n),x, algorithm="fricas")

[Out]

integral(1/(b*d*x^3*x^(2*n) + (b*c + a*d)*x^3*x^n + a*c*x^3), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b x^{n} + a\right )} {\left (d x^{n} + c\right )} x^{3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(a+b*x^n)/(c+d*x^n),x, algorithm="giac")

[Out]

integrate(1/((b*x^n + a)*(d*x^n + c)*x^3), x)

________________________________________________________________________________________

maple [F]  time = 1.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (b \,x^{n}+a \right ) \left (d \,x^{n}+c \right ) x^{3}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^3/(b*x^n+a)/(d*x^n+c),x)

[Out]

int(1/x^3/(b*x^n+a)/(d*x^n+c),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b x^{n} + a\right )} {\left (d x^{n} + c\right )} x^{3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(a+b*x^n)/(c+d*x^n),x, algorithm="maxima")

[Out]

integrate(1/((b*x^n + a)*(d*x^n + c)*x^3), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{x^3\,\left (a+b\,x^n\right )\,\left (c+d\,x^n\right )} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^3*(a + b*x^n)*(c + d*x^n)),x)

[Out]

int(1/(x^3*(a + b*x^n)*(c + d*x^n)), x)

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: HeuristicGCDFailed} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x**3/(a+b*x**n)/(c+d*x**n),x)

[Out]

Exception raised: HeuristicGCDFailed

________________________________________________________________________________________